1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
3  * http://www.gnu.org/licenses/gpl-3.0.html
4  */
5 
6 #ifndef STARTHEREPAGE_H
7 #define STARTHEREPAGE_H
8 
9 #ifndef CB_PRECOMP
10     #include <editorbase.h>
11 #endif
12 
13 extern const wxString g_StartHereTitle;
14 
15 class wxHtmlWindow;
16 class wxHtmlLinkInfo;
17 class RecentItemsList;
18 
19 class StartHerePage : public EditorBase
20 {
21     wxString revInfo;
22 
23     public:
24         StartHerePage(wxEvtHandler* owner, const RecentItemsList &projects,
25                       const RecentItemsList &files, wxWindow* parent);
26         virtual ~StartHerePage();
27 
28         bool LinkClicked(const wxHtmlLinkInfo& link);
VisibleToTree()29         virtual bool VisibleToTree() const { return false; }
30         void Reload();
31     private:
32         void RegisterColours();
33     protected:
34         wxEvtHandler* m_pOwner;
35         wxHtmlWindow* m_pWin;
36         wxString m_OriginalPageContent;
37         const RecentItemsList &m_projects;
38         const RecentItemsList &m_files;
39     private:
40         DECLARE_EVENT_TABLE()
41 };
42 
43 #endif // STARTHEREPAGE_H
44