RetroShare/retroshare-gui/src/gui/GetStartedDialog.h
csoler b8434a649e added a few 128px icons
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8561 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-06-27 11:47:37 +00:00

93 lines
2.3 KiB
C++

/****************************************************************
* RetroShare is distributed under the following license:
*
* Copyright (C) 2011, drbob
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
****************************************************************/
#ifndef _GETTING_STARTED_DIALOG_H
#define _GETTING_STARTED_DIALOG_H
//#include <retroshare/rstypes.h>
#include "ui_GetStartedDialog.h"
#include "mainpage.h"
#include <QTimer>
#define IMG_HELP ":/icons/help_128.png"
class GetStartedDialog : public MainPage
{
Q_OBJECT
public:
/** Default Constructor */
GetStartedDialog(QWidget *parent = 0);
/** Default Destructor */
~GetStartedDialog();
virtual QIcon iconPixmap() const { return QIcon(IMG_HELP) ; } //MainPage
virtual QString pageName() const { return tr("Getting Started") ; } //MainPage
virtual QString helpText() const { return ""; } //MainPage
// Single Point for (English) Text of the Invitation.
// This is used by other classes.
static QString GetInviteText();
static QString GetCutBelowText();
/*** signals: ***/
protected:
// Overloaded to get first show!
virtual void showEvent ( QShowEvent * event );
virtual void changeEvent(QEvent *e);
private slots:
void tickInviteChanged();
void tickAddChanged();
void tickConnectChanged();
void tickFirewallChanged();
void addFriends();
void inviteFriends();
void emailFeedback();
void emailSupport();
void emailSubscribe();
void emailUnsubscribe();
void OpenFAQ();
void OpenForums();
void OpenWebsite();
private:
void updateFromUserLevel();
bool mFirstShow;
private:
QTimer *mTimer;
QTimer *mInviteTimer;
/** Qt Designer generated object */
Ui::GetStartedDialog ui;
};
#endif