Files
pilotclient/src/blackgui/components/configurationwizard.h

65 lines
1.7 KiB
C++

/* Copyright (C) 2017
* swift project Community / Contributors
*
* This file is part of swift Project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
//! \file
#ifndef BLACKGUI_COMPONENTS_CONFIGURATIONWIZARD_H
#define BLACKGUI_COMPONENTS_CONFIGURATIONWIZARD_H
#include "blackgui/blackguiexport.h"
#include <QWizard>
#include <QScopedPointer>
namespace Ui { class CConfigurationWizard; }
namespace BlackGui
{
namespace Components
{
/**
* Configure the most important settings
*/
class BLACKGUI_EXPORT CConfigurationWizard : public QWizard
{
Q_OBJECT
public:
//! Page ids
enum Pages
{
CopySettings,
CopyCaches,
ConfigSimulator
};
//! Constructor
explicit CConfigurationWizard(QWidget *parent = nullptr);
//! Destructor
virtual ~CConfigurationWizard();
//! Was the last step skipped?
bool lastStepSkipped() const;
private:
//! The current page has changed
void wizardCurrentIdChanged(int id);
//! Custom button was clicked
void clickedCustomButton(int which);
QScopedPointer<Ui::CConfigurationWizard> ui;
int m_previousId = -1;
int m_minId = -1;
int m_maxId = -1;
bool m_skipped = false;
};
} // ns
} // ns
#endif // guard