mirror of
https://github.com/parchlinux/calamares.git
synced 2025-03-03 14:25:47 -05:00
59 lines
1.7 KiB
C++
59 lines
1.7 KiB
C++
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
|
*
|
|
* Copyright 2014, Teo Mrnjavac <teo@kde.org>
|
|
* Copyright 2019, Adriaan de Groot <groot@kde.org>
|
|
*
|
|
* Calamares 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.
|
|
*
|
|
* Calamares 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 Calamares. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef WELCOMEPAGE_H
|
|
#define WELCOMEPAGE_H
|
|
|
|
#include <QWidget>
|
|
|
|
namespace Ui
|
|
{
|
|
class WelcomePage;
|
|
}
|
|
|
|
class CheckerContainer;
|
|
class LocaleModel;
|
|
|
|
class WelcomePage : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit WelcomePage( QWidget* parent = nullptr );
|
|
|
|
/// @brief Configure the buttons for URLs from the branding configuration
|
|
void setUpLinks( bool showSupportUrl,
|
|
bool showKnownIssuesUrl,
|
|
bool showReleaseNotesUrl );
|
|
|
|
/// @brief Results of requirements checking
|
|
bool verdict() const;
|
|
|
|
protected:
|
|
void focusInEvent( QFocusEvent* e ) override; //choose the child widget to focus
|
|
|
|
private:
|
|
/// @brief Fill the list of languages with the available translations
|
|
void initLanguages();
|
|
|
|
Ui::WelcomePage* ui;
|
|
CheckerContainer* m_checkingWidget;
|
|
LocaleModel *m_languages;
|
|
};
|
|
|
|
#endif // WELCOMEPAGE_H
|