theshell/shell/onboarding.h

92 lines
2.2 KiB
C
Raw Normal View History

2017-08-05 15:20:02 +10:00
/****************************************
2017-11-06 15:35:25 +11:00
*
2017-08-05 15:20:02 +10:00
* theShell - Desktop Environment
2018-01-08 18:26:23 +11:00
* Copyright (C) 2018 Victor Tran
2017-08-05 15:20:02 +10:00
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
2017-11-06 15:35:25 +11:00
*
2017-08-05 15:20:02 +10:00
* *************************************/
2016-11-25 15:24:09 +11:00
#ifndef ONBOARDING_H
#define ONBOARDING_H
#include <QDialog>
#include <QTextBrowser>
#include <QPushButton>
#include <QSettings>
#include <QLabel>
#include <QLibraryInfo>
#include <QTranslator>
#include <QTimer>
#include "nativeeventfilter.h"
2016-11-25 15:24:09 +11:00
namespace Ui {
class Onboarding;
}
class Onboarding : public QDialog
{
Q_OBJECT
2018-07-01 19:11:24 +10:00
public:
explicit Onboarding(QWidget *parent = 0);
~Onboarding();
2016-11-25 15:24:09 +11:00
2018-07-01 19:11:24 +10:00
public slots:
void showFullScreen();
2016-11-25 15:24:09 +11:00
2018-07-01 19:11:24 +10:00
private slots:
void on_closeButton_clicked();
2017-11-06 15:35:25 +11:00
2018-07-01 19:11:24 +10:00
void on_stackedWidget_currentChanged(int arg1);
2016-11-25 15:24:09 +11:00
2018-07-01 19:11:24 +10:00
void on_nextButton_clicked();
2016-11-25 15:24:09 +11:00
2018-07-01 19:11:24 +10:00
void on_backButton_clicked();
2016-11-25 15:24:09 +11:00
2018-07-01 19:11:24 +10:00
void on_beginButton_clicked();
2018-07-01 19:11:24 +10:00
void on_changeLanguageButton_clicked();
2018-07-01 19:11:24 +10:00
void on_localeList_currentRowChanged(int currentRow);
2018-07-01 19:11:24 +10:00
void on_enableStatusBarButton_clicked();
2018-07-01 19:11:24 +10:00
void on_disableStatusBarButton_clicked();
2018-07-01 19:11:24 +10:00
void on_backToSetupButton_clicked();
2018-07-01 19:11:24 +10:00
void on_logoutButton_clicked();
2018-07-01 19:11:24 +10:00
void on_powerOffButton_clicked();
2017-11-06 15:35:25 +11:00
2018-07-01 19:11:24 +10:00
void on_exitStackedWidget_currentChanged(int arg1);
2018-02-06 00:17:11 +11:00
2018-07-01 19:11:24 +10:00
void on_enableCompactBarButton_clicked();
void on_disableCompactBarButton_clicked();
2018-02-06 00:17:11 +11:00
private:
2018-07-01 19:11:24 +10:00
Ui::Onboarding *ui;
2016-11-25 15:24:09 +11:00
2018-07-01 19:11:24 +10:00
void reject();
void changeEvent(QEvent* event);
2018-07-01 19:11:24 +10:00
int buttonCurrentLanguage = 0;
QSettings settings;
bool onboardingDone = false;
2016-11-25 15:24:09 +11:00
};
#endif // ONBOARDING_H