firstrundialog.h
/*
*openPilotLog - A FOSS Pilot Logbook Application
*Copyright (C) 2020-2022 Felix Turowsky
*
*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 <https://www.gnu.org/licenses/>.
*/
#ifndef FIRSTRUNDIALOG_H
#define FIRSTRUNDIALOG_H
#include <QDialog>
#include <QButtonGroup>
#include <QMessageBox>
#include <QStringBuilder>
#include <QDateEdit>
namespace Ui {
class FirstRunDialog;
}
class FirstRunDialog : public QDialog
{
Q_OBJECT
public:
explicit FirstRunDialog(QWidget *parent = nullptr);
~FirstRunDialog();
private slots:
void on_previousPushButton_clicked();
void on_nextPushButton_clicked();
void on_styleComboBox_currentTextChanged(const QString &new_style_setting);
void on_currCustom1LineEdit_editingFinished();
void on_currCustom2LineEdit_editingFinished();
void on_importPushButton_clicked();
private:
Ui::FirstRunDialog *ui;
bool useRessourceData;
bool finishSetup();
void writeSettings();
bool setupDatabase();
bool createUserEntry();
bool writeCurrencies();
bool downloadTemplates(QString branch_name);
bool verifyTemplates();
protected:
void reject() override;
void keyPressEvent(QKeyEvent* keyEvent) override;
};
#endif // FIRSTRUNDIALOG_H
FirstRunDialog
The FirstRunDialog is used as a set-up wizard for the application.
Definition: firstrundialog.h:76
FirstRunDialog::keyPressEvent
void keyPressEvent(QKeyEvent *keyEvent) override
Shows the debug widget by pressing <ctrl + t>
Definition: firstrundialog.cpp:391