2011-07-11 14:53:14 -04:00
|
|
|
/****************************************************************
|
|
|
|
* 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"
|
|
|
|
|
2011-07-30 08:41:28 -04:00
|
|
|
#include <QTimer>
|
|
|
|
|
2014-05-09 22:38:47 -04:00
|
|
|
#define IMG_HELP ":/images/help24.png"
|
2012-02-03 15:38:45 -05:00
|
|
|
|
2011-07-11 14:53:14 -04:00
|
|
|
class GetStartedDialog : public MainPage
|
|
|
|
{
|
2012-02-03 19:55:55 -05:00
|
|
|
Q_OBJECT
|
2011-07-11 14:53:14 -04:00
|
|
|
|
2012-02-03 19:55:55 -05:00
|
|
|
public:
|
|
|
|
/** Default Constructor */
|
|
|
|
GetStartedDialog(QWidget *parent = 0);
|
|
|
|
/** Default Destructor */
|
|
|
|
~GetStartedDialog();
|
2011-07-11 14:53:14 -04:00
|
|
|
|
2014-05-09 22:38:47 -04:00
|
|
|
virtual QIcon iconPixmap() const { return QIcon(IMG_HELP) ; } //MainPage
|
|
|
|
virtual QString pageName() const { return tr("Getting Started") ; } //MainPage
|
|
|
|
virtual QString helpText() const { return ""; } //MainPage
|
|
|
|
|
2012-02-03 19:55:55 -05:00
|
|
|
// Single Point for (English) Text of the Invitation.
|
|
|
|
// This is used by other classes.
|
|
|
|
static QString GetInviteText();
|
|
|
|
static QString GetCutBelowText();
|
2012-02-03 15:38:45 -05:00
|
|
|
|
2011-07-11 14:53:14 -04:00
|
|
|
/*** signals: ***/
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// Overloaded to get first show!
|
2012-02-03 19:55:55 -05:00
|
|
|
virtual void showEvent ( QShowEvent * event );
|
|
|
|
virtual void changeEvent(QEvent *e);
|
2011-07-11 14:53:14 -04:00
|
|
|
|
|
|
|
private slots:
|
2012-02-03 19:55:55 -05:00
|
|
|
void tickInviteChanged();
|
|
|
|
void tickAddChanged();
|
|
|
|
void tickConnectChanged();
|
|
|
|
void tickFirewallChanged();
|
2011-07-11 14:53:14 -04:00
|
|
|
|
2012-02-03 19:55:55 -05:00
|
|
|
void addFriends();
|
|
|
|
void inviteFriends();
|
2011-07-11 14:53:14 -04:00
|
|
|
|
2012-02-03 19:55:55 -05:00
|
|
|
void emailFeedback();
|
|
|
|
void emailSupport();
|
|
|
|
void emailSubscribe();
|
|
|
|
void emailUnsubscribe();
|
2011-07-30 08:41:28 -04:00
|
|
|
|
2012-02-03 19:55:55 -05:00
|
|
|
void OpenFAQ();
|
|
|
|
void OpenForums();
|
|
|
|
void OpenWebsite();
|
2011-07-11 14:53:14 -04:00
|
|
|
|
|
|
|
private:
|
2012-02-03 19:55:55 -05:00
|
|
|
void updateFromUserLevel();
|
2011-07-11 14:53:14 -04:00
|
|
|
|
2012-02-03 19:55:55 -05:00
|
|
|
bool mFirstShow;
|
2011-07-11 14:53:14 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
2012-02-03 19:55:55 -05:00
|
|
|
QTimer *mTimer;
|
|
|
|
QTimer *mInviteTimer;
|
2011-07-30 08:41:28 -04:00
|
|
|
|
2011-07-11 14:53:14 -04:00
|
|
|
/** Qt Designer generated object */
|
2012-02-03 19:55:55 -05:00
|
|
|
Ui::GetStartedDialog ui;
|
2011-07-11 14:53:14 -04:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|