| 1 |
/* |
| 2 |
Copyright (C) 2009-2010 wxLauncher Team |
| 3 |
|
| 4 |
This program is free software; you can redistribute it and/or |
| 5 |
modify it under the terms of the GNU General Public License |
| 6 |
as published by the Free Software Foundation; either version 2 |
| 7 |
of the License, or (at your option) any later version. |
| 8 |
|
| 9 |
This program is distributed in the hope that it will be useful, |
| 10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
GNU General Public License for more details. |
| 13 |
|
| 14 |
You should have received a copy of the GNU General Public License |
| 15 |
along with this program; if not, write to the Free Software |
| 16 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 |
*/ |
| 18 |
|
| 19 |
#ifndef WELCOMEPAGE_H |
| 20 |
#define WELCOMEPAGE_H |
| 21 |
|
| 22 |
#include <wx/wx.h> |
| 23 |
|
| 24 |
#include "global/ids.h" |
| 25 |
#include "apis/ProfileManager.h" |
| 26 |
|
| 27 |
class WelcomePage: public wxPanel { |
| 28 |
public: |
| 29 |
WelcomePage(wxWindow* parent); |
| 30 |
void LinkClicked(wxHtmlLinkEvent& event); |
| 31 |
void LinkHover(wxHtmlCellEvent& event); |
| 32 |
void OnMouseOut(wxMouseEvent& event); |
| 33 |
void ProfileButtonClicked(wxCommandEvent& event); |
| 34 |
void AutoSaveProfilesChecked(wxCommandEvent& event); |
| 35 |
void ProfileChanged(wxCommandEvent& event); |
| 36 |
void ProfileCountChanged(wxCommandEvent& event); |
| 37 |
void UpdateNews(wxIdleEvent& event); |
| 38 |
void OnDownloadNewsCheck(wxCommandEvent& event); |
| 39 |
void OnUpdateNewsHelp(wxCommandEvent& event); |
| 40 |
void OnTCSkinChanged(wxCommandEvent& event); |
| 41 |
|
| 42 |
private: |
| 43 |
/** The width of the items on the welcome tab. */ |
| 44 |
const static int stuffWidth = TAB_AREA_WIDTH; |
| 45 |
void *lastLinkInfo; |
| 46 |
|
| 47 |
void cloneNewProfile(wxChoice* combobox, ProMan* profile); |
| 48 |
void deleteProfile(wxChoice* combobox, ProMan* profile); |
| 49 |
|
| 50 |
bool needToUpdateNews; |
| 51 |
wxCheckBox* updateNewsCheck; |
| 52 |
void getOrPromptUpdateNews(wxIdleEvent&); |
| 53 |
|
| 54 |
DECLARE_EVENT_TABLE(); |
| 55 |
}; |
| 56 |
|
| 57 |
#endif |